package com.worldcup.dao;

import com.worldcup.model.TravelEvent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author duwan.zq
 */
@Mapper
@Repository
public interface TravelEventMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TravelEvent record);

    int insertSelective(TravelEvent record);

    TravelEvent selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TravelEvent record);

    int updateByPrimaryKey(TravelEvent record);

    /**
     * list
     * @param openid
     * @param status
     * @return
     */
    List<TravelEvent> selectByOpenid(@Param("openid") String openid, @Param("status") int status);

    /**
     * list
     * @param recOpenid
     * @param status
     * @return
     */
    List<TravelEvent> selectByRecOpenid(@Param("recOpenid") String recOpenid, @Param("status") int status);
}